const path=require('path');
import typescript from '@rollup/plugin-typescript';
import postcss from 'rollup-plugin-postcss';

const entryFileMain=path.resolve(__dirname,'../src/wave/packages/index.tsx');
const entryFileIcon=path.resolve(__dirname,'../src/wave/icons/index.tsx');

export default {
    input:[entryFileMain,entryFileIcon],
    output:{
        dir:'wave-lite-react',
        format:'es',
        preserveModules:true,
        preserveModulesRoot:'src/wave'
    },
    plugins:[
        postcss({
            extract:true,
            extract:'style/index.css'
        }),
        typescript()
    ],
    external:['react','react-dom']
}